package com.ruoyi.task.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 核酸任务对象 t_task
 * 
 * @author ruoyi
 * @date 2022-10-17
 */
public class TTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Integer id;

    /** 小区名 */
    @Excel(name = "小区名")
    private String cellName;

    /** 楼栋名 */
    @Excel(name = "楼栋名")
    private String building;

    /** 任务名 */
    @Excel(name = "任务名")
    private String task;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 检测位置 */
    @Excel(name = "检测位置")
    private String position;

    /** 任务人数 */
    @Excel(name = "任务人数")
    private Long taskCount;

    /** 完成人数 */
    @Excel(name = "完成人数")
    private Long completeCount;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setCellName(String cellName) 
    {
        this.cellName = cellName;
    }

    public String getCellName() 
    {
        return cellName;
    }
    public void setBuilding(String building) 
    {
        this.building = building;
    }

    public String getBuilding() 
    {
        return building;
    }
    public void setTask(String task) 
    {
        this.task = task;
    }

    public String getTask() 
    {
        return task;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setPosition(String position) 
    {
        this.position = position;
    }

    public String getPosition() 
    {
        return position;
    }
    public void setTaskCount(Long taskCount) 
    {
        this.taskCount = taskCount;
    }

    public Long getTaskCount() 
    {
        return taskCount;
    }
    public void setCompleteCount(Long completeCount) 
    {
        this.completeCount = completeCount;
    }

    public Long getCompleteCount() 
    {
        return completeCount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cellName", getCellName())
            .append("building", getBuilding())
            .append("task", getTask())
            .append("status", getStatus())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("position", getPosition())
            .append("taskCount", getTaskCount())
            .append("completeCount", getCompleteCount())
            .toString();
    }
}
